package com.starrocks.config;

import com.starrocks.entity.SyncTableConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * 同步配置
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "sync")
public class SyncConfig {
    
    /**
     * 是否启用CDC同步
     */
    private Boolean enabled = true;
    
    /**
     * 是否自动启动
     */
    private Boolean autoStart = true;
    
    /**
     * 表同步配置列表
     */
    private List<SyncTableConfig> tables = new ArrayList<>();
}

